/**
 * 
 */
package com.hfjyz.registration.service;

import java.util.List;
import java.util.Map;

import org.springframework.validation.Errors;

import com.hfjyz.registration.command.LogInfoListCommand;
import com.hfjyz.registration.dao.LoggingDao;
import com.hfjyz.registration.model.Logging;

/**
 *
 */
public class LogInfoServiceImpl implements LogInfoService {
    private LoggingDao loggingDao;

    @SuppressWarnings("rawtypes")
    @Override
    public Map initLogInfo(LogInfoListCommand cmd, Errors errors)
            throws Exception {
        List<Logging> logInfos = loggingDao.listAll();
        cmd.setResult(logInfos);
        return null;
    }

    /**
     * @return the LoggingDao
     */
    public LoggingDao getLoggingDao() {
        return loggingDao;
    }

    /**
     * @param LoggingDao
     *            the LoggingDao to set
     */
    public void setLoggingDao(LoggingDao loggingDao) {
        this.loggingDao = loggingDao;
    }

}
